NestedScrollingParent
This interface should be implemented by ViewGroup subclasses that wish to support scrolling operations delegated by a nested child view.
Classes implementing this interface should create a final instance of a NestedScrollingParentHelper as a field and delegate any View or ViewGroup methods to the NestedScrollingParentHelper
methods of the same signature.
Views invoking nested scrolling functionality should always do so from the relevant ViewCompat, ViewGroupCompat or ViewParentCompat compatibility shim static methods. This ensures interoperability with nested scrolling views on Android 5.0 Lollipop and newer.
Inheritors
Functions
Link copied to clipboard
Return the current axes of nested scrolling for this NestedScrollingParent.
Link copied to clipboard
Link copied to clipboard
abstract fun onNestedPreFling(@NonNull target: @NonNull View, velocityX: Float, velocityY: Float): Boolean
React to a nested fling before the target view consumes it.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun onNestedScrollAccepted(@NonNull child: @NonNull View, @NonNull target: @NonNull View, axes: Int)
React to the successful claiming of a nested scroll operation.
Link copied to clipboard
abstract fun onStartNestedScroll(@NonNull child: @NonNull View, @NonNull target: @NonNull View, axes: Int): Boolean
React to a descendant view initiating a nestable scroll operation, claiming the nested scroll operation if appropriate.
Link copied to clipboard
React to a nested scroll operation ending.